#include "csapp.h"

int main() 
{
 pid_t pid;
 int x = 1;

 pid = Fork(); //line:ecf:forkreturn//父进程和子进程中x的值都为1
 if (pid == 0) {  /* Child */
printf("child : x=%d\n", ++x); //子进程增加并输出它的x的拷贝
exit(0);
}

/* Parent */
printf("parent: x=%d\n", --x); //父进程减少和输出它的x的拷贝
exit(0);
}
